package edu.zac.pojo;

/**
 * @Title
 * @Author Peihan.Zhang
 * @Email zhangpeihan@sjgtw.com
 * @Date 2021/10/19 19:09
 * @Versions 1.0
 */
public class Emp {
    private Integer id;
    private  String  name;
    private  Double salary;
    private  String  job;

    public Emp(Integer id, String name, Double salary, String job) {
        this.id = id;
        this.name = name;
        this.salary = salary;
        this.job = job;
    }
    public Emp(){}

    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", salary=" + salary +
                ", job='" + job + '\'' +
                '}';
    }
    public void add(){
        System.out.println(this.toString());
    }

    public Integer getId() {
        return id;
    }


}
